<template>
  <view class="page">
    <UserDate/>
    <view class="times flexR">
      <view class="time">一月内</view>
      <view class="time">半年内</view>
      <view class="time">一年内</view>
      <view class="time">全部</view>
    </view>
    
    <view class="tcard">
      <view class="title">
        2024年09月10日
      </view>
      <view class="name flexR">
        <view>电子病历</view>
        <view>已出</view>
      </view>
      <view class="to flexR">
        <text>2024-09-10 12:00</text>
        <text>点击查看>></text>
      </view>
    </view>
  </view>
</template>

<script>
  import UserDate from '@/components/UserInfo/user-date.vue'
  export default {
    components: {UserDate},
    data() {
      return {
        
      }
    },
    methods: {
      
    }
  }
</script>

<style scoped lang="scss">
.times {
  justify-content: space-around;
  align-items: center;
  gap: 10upx;
  width: 100vw;
  padding: 24upx 16upx;
  position: sticky;
  top: 0;
  left: -32upx;
  transform: translateY(-32upx);
  margin-left: -32upx;
  margin-right: -32upx;
  margin-bottom: -32upx;
  .time {
    height: 48upx;
    flex: 1;
    background-color: #FFF;
    text-align: center;
    line-height: 48upx;
    border-radius: 4upx;
  }
}
.name {
  justify-content: space-between;
  padding: 24upx 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  > view {
    &:nth-child(1) {
      font-family: PingFang SC, PingFang SC;
      font-weight: 500;
      font-size: 28upx;
      color: rgba(0,0,0,0.8);
      line-height: 44upx;
    }
    &:nth-child(2) {
      padding: 2upx 16upx;
      background-color: #5DD2B1;
      color: #FFF;
      border-radius: 4px;
    }
  }
}
.to {
  justify-content: space-between;
  >text {
    &:nth-child(1) {
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 24upx;
      color: rgba(0,0,0,0.4);
      line-height: 44upx;
    }
    &:nth-child(2) {
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 28upx;
      color: #3E81F7;
      line-height: 48upx;
    }
  }
}
</style>
